import zipfile

def is_valid_zip(zip_file_path):
    try:
        with zipfile.ZipFile(zip_file_path, 'r') as zip_ref:
            # 尝试读取zip文件的内容
            zip_ref.extractall()
        return True
    except zipfile.BadZipFile:
        return False


if __name__ == '__main__':
    local_file="../bag/fcm6n2erc77u76vjads10-EP40_TDA4_drive_sc-20231228-205935-2301.zip"
    aa=is_valid_zip(local_file)
    print(aa)